package com.bookcity.front.webfront.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 支付记录对象 bpay
 * 
 * @author ruoyi
 * @date 2023-05-09
 */
public class Bay extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private Long id;

    /** 用户号 */
    @Excel(name = "用户号")
    private Long memid;

    /** 充值金额 */
    @Excel(name = "充值金额")
    private Double money;

    /** 折扣 */
    @Excel(name = "折扣")
    private Double discount;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paytype;

    /** 订单号 */
    @Excel(name = "订单号")
    private String ordercode;

    /** 产生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "产生时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paytime;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Boolean isfinish;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private String paystatus;

    /** 从那本书开会员 */
    @Excel(name = "从那本书开会员")
    private Long bookid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMemid(Long memid) 
    {
        this.memid = memid;
    }

    public Long getMemid() 
    {
        return memid;
    }
    public void setMoney(Double money) 
    {
        this.money = money;
    }

    public Double getMoney() 
    {
        return money;
    }
    public void setDiscount(Double discount) 
    {
        this.discount = discount;
    }

    public Double getDiscount() 
    {
        return discount;
    }
    public void setPaytype(String paytype) 
    {
        this.paytype = paytype;
    }

    public String getPaytype() 
    {
        return paytype;
    }
    public void setOrdercode(String ordercode) 
    {
        this.ordercode = ordercode;
    }

    public String getOrdercode() 
    {
        return ordercode;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }
    public void setPaytime(Date paytime) 
    {
        this.paytime = paytime;
    }

    public Date getPaytime() 
    {
        return paytime;
    }
    public void setIsfinish(Boolean isfinish) 
    {
        this.isfinish = isfinish;
    }

    public Boolean getIsfinish() 
    {
        return isfinish;
    }
    public void setPaystatus(String paystatus) 
    {
        this.paystatus = paystatus;
    }

    public String getPaystatus() 
    {
        return paystatus;
    }
    public void setBookid(Long bookid) 
    {
        this.bookid = bookid;
    }

    public Long getBookid() 
    {
        return bookid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memid", getMemid())
            .append("money", getMoney())
            .append("discount", getDiscount())
            .append("paytype", getPaytype())
            .append("ordercode", getOrdercode())
            .append("addtime", getAddtime())
            .append("paytime", getPaytime())
            .append("isfinish", getIsfinish())
            .append("paystatus", getPaystatus())
            .append("bookid", getBookid())
            .toString();
    }
}
